package yannan.voiplock4ble.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * <p>name:</p>
 * <p>describe:指静脉列表item的实体类</p>
 *
 * @author Maintel
 * @time 2016/9/9 21:20
 */
@Entity
public class VeinKeyBean {
    @Id
    public long id;

    /*
     * userIdentifier	手机号
     * nickName	别名
     * userPermission	是否是管理员（0不是 1是）
     * isBan	是否被禁止开门（1:启用；0:未启用）
     * lockserialId	锁的序列号
     * registerTime	注册时间
     * userId	用户id（没有注册app帐号时为null）
     */
    public String lockserialId;
    public String userId;
    public String registerTime;
    public String isBan;
    public String userPermission;
    public String nickName;
    public String userIdentifier;
    public int type = 0;

    public VeinKeyBean(String lockserialId, String userId, String registerTime,
                       String isBan, String userPermission, String nickName,
                       String phoneNumber, int type) {
        this.lockserialId = lockserialId;
        this.userId = userId;
        this.registerTime = registerTime;
        this.isBan = isBan;
        this.userPermission = userPermission;
        this.nickName = nickName;
        this.userIdentifier = phoneNumber;
        this.type = type;
    }

    @Generated(hash = 1691529785)
    public VeinKeyBean(long id, String lockserialId, String userId, String registerTime, String isBan,
            String userPermission, String nickName, String userIdentifier, int type) {
        this.id = id;
        this.lockserialId = lockserialId;
        this.userId = userId;
        this.registerTime = registerTime;
        this.isBan = isBan;
        this.userPermission = userPermission;
        this.nickName = nickName;
        this.userIdentifier = userIdentifier;
        this.type = type;
    }

    @Generated(hash = 1019961337)
    public VeinKeyBean() {
    }

    public String getLockserialId() {
        return this.lockserialId;
    }

    public void setLockserialId(String lockserialId) {
        this.lockserialId = lockserialId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRegisterTime() {
        return this.registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getIsBan() {
        return this.isBan;
    }

    public void setIsBan(String isBan) {
        this.isBan = isBan;
    }

    public String getUserPermission() {
        return this.userPermission;
    }

    public void setUserPermission(String userPermission) {
        this.userPermission = userPermission;
    }

    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserIdentifier() {
        return this.userIdentifier;
    }

    public void setUserIdentifier(String userIdentifier) {
        this.userIdentifier = userIdentifier;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

}
